<template>
	<div>

			<div :class="['top',white?'whi':'']" @click="commonJs.funs(aa,bb)">
			
				<img class="imgIcon" src="~/static/iconsvgs/top_icon_back.png" alt="">
				<span class="back">返回</span>
		</div>
	</div>

</template>

<script>
	// 	import {
	// 		Confirm,
	// 		TransferDomDirective as TransferDom
	// 	} from 'vux'
	export default {
		props: {
			white: {
				type: Boolean,
				default: false
			},
			goes: {
				type: Boolean,
				default: true
			},

			gos: String,
			routeName: String,
			aa: String,
			bb: String
		},
		// directives: {
		// 	TransferDom
		// },
		// components: {
		// 	// Confirm
		// },
		data() {
			return {
				show: false,

			};
		},
		computed: {

		},
		mounted: function() {},
		methods: {
			// 			onCancel() {
			// 				console.log('on cancel')
			// 			},
			// 			onConfirm(msg) {
			// 				// this.$router.go(-1);
			// 				this.commonJs.gosback('createTest')
			// 				console.log('on confirm')
			// 			},
			// 
			// 			onHide() {
			// 				console.log('on hide')
			// 			},
			// 			onShow() {
			// 				console.log('on show')
			// 			},

		}
	};
</script>


<style scoped lang="less">
	.top {
		width: 100%;
		height: 0.8rem;
		line-height: 0.8rem;
		padding: 0.2rem 0.3rem;
		box-sizing: border-box;
		display: flex;
		justify-content: flex-start;
		align-items: center;

		.imgIcon {
			width: 0.4rem;
			height: 0.4rem;
		}
		.back {
			display: inline-block;
			margin-left: 0.1rem;
			font-weight: bold;
			color: #222;
			// width: 0.4rem;
			// height: 0.4rem;
			// font-size: 0.3rem;
		}

	}

	.whi {
		background: #fff;
	}
</style>
